package org.dromara.germbank.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 渠道管理
 * 数据库表名：bus_channel_management
 */
@Data
@TableName("bus_channel_management")
public class BusChannelManagement implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @TableField("id")
    @NotNull(message = "主键id不能为空")
    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer id;

    @TableField("channel_name")
    @Size(max = 255, message = "渠道名称长度不能超过255")
    @Length(max = 255, message = "渠道名称长度不能超过255")
    @Schema(description = "渠道名称")
    private String channelName;

    @TableField("channel_code_prefix")
    @Size(max = 255, message = "渠道代码前缀长度不能超过255")
    @Length(max = 255, message = "渠道代码前缀长度不能超过255")
    @Schema(description = "渠道代码前缀")
    private String channelCodePrefix;

    @TableField("channel_state")
    @Size(max = 255, message = "渠道状态长度不能超过255")
    @Length(max = 255, message = "渠道状态长度不能超过255")
    @Schema(description = "渠道状态")
    private String channelState;

    @TableField("create_time")
    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @TableField("update_time")
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

    @TableField("del_flag")
    @Size(max = 255, message = "删除标志长度不能超过255")
    @Length(max = 255, message = "删除标志长度不能超过255")
    @Schema(description = "删除标志（0存在 1删除）")
    private String delFlag;

}
